package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品分类表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_type")
public class Type implements Serializable {
    /**
     * 分类id
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Long typeId;

    /**
     * 分类名称
     */
    @TableField(value = "type_name")
    private String typeName;

    /**
     * 分类图片
     */
    @TableField(value = "type_image")
    private String typeImage;

    /**
     * 排序
     */
    @TableField(value = "type_top")
    private Integer typeTop;

    /**
     * 状态：0显示1隐藏
     */
    @TableField(value = "type_status")
    private Integer typeStatus;

    /**
     * 父级id
     */
    @TableField(value = "type_pid")
    private Integer typePid;

    /**
     * 级别：1，2，3
     */
    @TableField(value = "type_level")
    private Integer typeLevel;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_date")
    private Date updateDate;

    /**
     * 删除标识 0未删除 1已删除
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 删除时间
     */
    @TableField(value = "delete_date")
    private Date deleteDate;

    private static final long serialVersionUID = 1L;
}